import { useEffect, memo } from 'react'
function Home(props) {

    useEffect(() => {
        let userdata = window.sessionStorage.getItem("userdata") || ''
        if (!userdata) {
            // console.log(props);
            props.history.replace("/login")
        }
    })
    return (
        <>
            {props.children}
        </>
    )
}
export default memo(Home)